﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Hotnet.Web.Utility.HeadControl>" %>

<link href="/Css/headNavigate.css" rel="stylesheet" type="text/css" />
<link href="/Css/head.css" rel="stylesheet" type="text/css" />

	<div class="cb"></div>
	<div id="pointermenu">
		<%if (Model.SystemCategory == EnumSystemCategory.新闻)
		{ %>
			<ul>
				<li>
					<a href="/news" id='<%=Model.SystemCategoryID>0?"":"selected" %>'>文章首页</a>
				</li>
				<%for (int i = 0; i < Model.NewsCategories.Length; i++)
				{%>
						<li>
							<a href="/newsCategory/index/<%= Model.NewsCategories[i].CategoryID %>" id="<%=Model.SystemCategoryID == Model.NewsCategories[i].CategoryID?"selected":""%>">
								<%= Model.NewsCategories[i].Name%>
							</a>
						</li>
				<%} %>
			</ul>
		<%} %>
		
		<%if (Model.SystemCategory == EnumSystemCategory.图片)
		{ %>
			<ul>
				<li>
					<a href="/picture" id='<%=Model.SystemCategoryID>0?"":"selected" %>'>图片首页</a>
				</li>
				<%for (int i = 0; i < Model.PictureCategories.Length; i++)
				{%>
						<li>
							<a href="/picture/category/<%= Model.PictureCategories[i].CategoryID %>" id="<%=Model.SystemCategoryID == Model.PictureCategories[i].CategoryID?"selected":""%>">
								<%= Model.PictureCategories[i].Name%>
							</a>
						</li>
				<%} %>
			</ul>
		<%} %>
		
		<%if (Model.SystemCategory == EnumSystemCategory.视频)
		{ %>
			<ul>
				<li>
					<a href="/video" id='<%=Model.SystemCategoryID>0?"":"selected" %>'>视频首页</a>
				</li>
				<%for (int i = 0; i < Model.VideoCategories.Length; i++)
				{%>
						<li>
							<a href="/videocategory/index/<%= Model.VideoCategories[i].CategoryID %>" id="<%=Model.SystemCategoryID == Model.VideoCategories[i].CategoryID?"selected":""%>">
								<%= Model.VideoCategories[i].Name%>
							</a>
						</li>
				<%} %>
			</ul>
		<%} %>
		
	</div>
	
	
<div class="cb"></div>
